package com.events
{
	import flash.events.Event;

	/**
	 * Event für das Erzeugen, Aktualisieren, Entfernen einer Verbindung
	 * 
	 */
	public class ConnectEvent extends Event
	{
		public var data:Object;
		
		public static const CONNECT:String = "connect";
		public static const UPDATE:String = "connectUpdate";
		public static const CREATE:String = "connectCreate";
		public static const DELETE:String = "connectDelete";
		
		public function ConnectEvent(
			type:String,  
			pData:Object,
			bubbles:Boolean=true, 
			cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
			data = pData;
		}
		
		override public function clone():Event
		{
			return new ConnectEvent(type, data);
		}
		
	}
}